/*
 * All rights Reserved, Designed By DataDriver
 * Copyright:    DataDriver.Inc
 * Company:      Zhuo Wo Infomation Technology (ShangHai) CO.LTD
 */
package com.sun.controller;

import com.sun.service.HelloService;
import com.sun.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OpenFeignController {

    @Autowired
    private HelloService helloService;

    @Autowired
    private OrderService orderService;

    @RequestMapping("/openFeign")
    public String hello() {
        return helloService.hello();
    }


    @RequestMapping("/list")
    public String findOrder(){
        return orderService.findOrderList();
    }
}
